// 记得去全局引入  router
export default [
    {
        path:"/main",
        name:'main',
        component:()=>import("./index.vue"),
        children:[
            { 
                path:'home',
                name:'home',
                component:()=>import("./home.vue")
            },
            // {
            //     path:'classify',
            //     name:'classify',
            //     component:()=>import("./classify.vue")
            // },
            {
                path:'customer',
                name:'customer',
                component:()=>import("./customer.vue")
            },
            {
                path:'shop',
                name:'shop',
                component:()=>import("./shop.vue")
            },
            {
                path:'shoppingCart',
                name:'shoppingCart',
                component:()=>import("./shoppingCart.vue")
            },
            {
                path:'mine',
                name:'mine',
                component:()=>import("./mine.vue")
            },
            {
                path:"*",
                redirect: {name:"home"}
            }
        ]
    },
]